package mc

import (
	"gitee.com/dreamwood/ez-go/db/mgo"
)

const (
	CheckResultGroupEventNew          = "mes.CheckResultGroupNew"
	CheckResultGroupEventBeforeCreate = "mes.CheckResultGroupBeforeCreate"
	CheckResultGroupEventBeforeUpdate = "mes.CheckResultGroupBeforeUpdate"
	CheckResultGroupEventBeforeSave   = "mes.CheckResultGroupBeforeCreate mes.CheckResultGroupBeforeUpdate"
	CheckResultGroupEventAfterCreate  = "mes.CheckResultGroupAfterCreate"
	CheckResultGroupEventAfterUpdate  = "mes.CheckResultGroupAfterUpdate"
	CheckResultGroupEventAfterSave    = "mes.CheckResultGroupAfterCreate mes.CheckResultGroupAfterUpdate"
	CheckResultGroupEventDelete       = "mes.CheckResultGroupDelete"

	CheckResultGroupAccessControlEvent = "mes.CheckResultGroupAccessControl"
)

func GetCheckResultGroupConfig() *mgo.DocConfig {
	return CheckResultGroup_Config
}

var CheckResultGroup_Config *mgo.DocConfig

func init() {
	CheckResultGroup_Config = NewCheckResultGroupConfig()
}

func NewCheckResultGroupConfig() *mgo.DocConfig {
	return &mgo.DocConfig{
		ContainerKey: "mes.CheckResultGroup",
		Fields: []string{
			"name", "code",
		},
		RelationFields:  []string{},
		RelationConfigs: map[string]*mgo.DocRelation{},
		FieldFilter: map[string]*mgo.DocFieldFilter{
			"default": {
				Select: []string{},
				Omit:   []string{},
			},
		},
	}
}
